package com.wd.health.utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * @ProjectName:shopmall
 * @Package:com.bawei.myhealth.utils
 * @ClassName:PersonSQLiteOpenHelper
 * @UpdateUser: 裴童童
 * @date: 2020/12/11
 */
public class PersonSQLiteOpenHelper extends SQLiteOpenHelper {

    public PersonSQLiteOpenHelper(Context context) {
        super(context, "person.db", null, 1);
    }
    @Override
    public void onCreate(SQLiteDatabase db) {
        //初始化表结构
        db.execSQL("create table person (id Integer primary key autoincrement,name varchar(20),number varchar(20))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
